package com.iting.test.exceptionhandler;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author iting Nie
 * @version 1.1
 * @create 2022/2/14
 */
@ControllerAdvice
@ResponseBody
public class MyExceptionHandler {

	@ExceptionHandler(Exception.class)
	public Object handlerException() {
		return "Error : Exception";
	}
}
